package com.cn.wanxi.service;

import com.cn.wanxi.model.ProductTypeModel;

import java.util.List;

public class ProductTypeService {
    public List<ProductTypeModel> getProductTypeList(){
        ProductTypeModel productTypeModel = new ProductTypeModel();
        for (int i = 0; i < productTypeModel.names.length; i++) {
            ProductTypeModel productType = new ProductTypeModel();
            productType.setName(productTypeModel.names[i]);
            productType.setHref(productTypeModel.hrefs[i]);
            productTypeModel.list.add(productType);
        }
        return productTypeModel.list;
    }
}
